

import ControlScript from "../PublicScript/ControlScript";
import GameData_red_blue_man from "./GameData_red_blue_man";
import LoadShow from "./LoadShow";


const {ccclass, property} = cc._decorator;

@ccclass
export default class LoadMap extends cc.Component {

    onLoad () {
        this.loadMap();
    }

    start () {

    }

    loadMap(){
        // if(GameData.highestLevel <= 70 && QQSDKManner.GetInstance().open_test){
        //     GameData.highestLevel = 71;
        // }
        let level = GameData_red_blue_man.highestLevel % GameData_red_blue_man.maxLevel == 0 ? GameData_red_blue_man.maxLevel :  GameData_red_blue_man.highestLevel % GameData_red_blue_man.maxLevel;
        ControlScript.instantiate("loadShow", (res)=>{
            res.getComponent(LoadShow).show("Game/game" + level)
        });
        // ControlScript.loadRes("Prefab/Game/game" + level, ()=>{});
    }

    // update (dt) {}
}
